home *** CD-ROM | disk | FTP | other *** search
- #include "my color.h"
-
- adjust_TE_rect(a_window) /* This routine is called from the "do mouse" routine,
- Here I will re-size the TE destination and view
- rectangles after the user has "grown" the window */
- CWindowPtr a_window;
- {
- register TEHandle the_text;
-
- the_text = (TEHandle)((CWindowPeek)a_window)->refCon;
- (**the_text).destRect = a_window->portRect;
- (**the_text).destRect.right = (**the_text).destRect.right - BAR_WIDTH;
- (**the_text).destRect.bottom = (**the_text).destRect.bottom - BAR_WIDTH;
- InsetRect(&(**the_text).destRect, 4, 0);
- (**the_text).viewRect = (**the_text).destRect;
- TECalText(the_text);
- }
-